home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 58 / pcpp58a.iso / extras / quake 3 source / Q3A_ToolSource.exe / Main / mesh.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-02  |  759 b   |  28 lines

  1.  
  2. // mesh.h
  3.  
  4.  
  5. typedef struct {
  6.     int            width, height;
  7.     drawVert_t    *verts;
  8. } mesh_t;
  9.  
  10. #define    MAX_EXPANDED_AXIS        128
  11.  
  12. extern    int    originalWidths[MAX_EXPANDED_AXIS];
  13. extern    int    originalHeights[MAX_EXPANDED_AXIS];
  14.  
  15. void FreeMesh( mesh_t *m );
  16. mesh_t *CopyMesh( mesh_t *mesh );
  17. void PrintMesh( mesh_t *m );
  18. mesh_t *TransposeMesh( mesh_t *in );
  19. void InvertMesh( mesh_t *m );
  20. mesh_t *SubdivideMesh( mesh_t in, float maxError, float minLength );
  21. mesh_t *SubdivideMeshQuads( mesh_t *in, float minLength, int maxsize, int widthtable[], int heighttable[]);
  22. mesh_t *RemoveLinearMeshColumnsRows( mesh_t *in );
  23. void MakeMeshNormals( mesh_t in );
  24. void PutMeshOnCurve( mesh_t in );
  25.  
  26.  
  27. void MakeNormalVectors (vec3_t forward, vec3_t right, vec3_t up);
  28.